package com.bawei.login.api

import com.bawei.common.api.BaseApiServer
import com.bawei.login.entity.LoginResultEntity
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * Author: Jason Zhang
 * Date: 2024/12/17
 * Desc: 登录接口类
 */
interface LoginApiServer: BaseApiServer {

    @POST("/sysUser/loginUser")
    suspend fun loginToServer(@Body body: RequestBody): LoginResultEntity

    @POST("/sysUser/registerUser")
    suspend fun registerToServer(@Body body: RequestBody): LoginResultEntity


}